<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>404 Not Found</title>
<style type="text/css">
*{font-family:Tahoma, Geneva, sans-serif;}
#main{
	position:relative;
	width:600px;
	left:50%;
	margin-left:-300px;
	border:1px solid #BBB;
	padding:10px;
	margin-top:20%;
	border-radius:5px;
	box-shadow:3px 3px 3px rgba(200,200,200,.6);
}
#tip{font-size:12px;color:#AAA;}
#tip_title{font-weight:bold;}
#content{font-size:14px;color:#333;}
#header_home{color:#0F0;font-weight:bold;}
#text404{font-weight:bold;font-size:26px;font-family:Georgia;color:red;}
#time_limit{font-weight:bold;color:#0F0;}
</style>
</head>

<body>
	<div id="main">
		<p id="content">
        	错误&nbsp;<span id="text404">404</span>&nbsp;，你所请求的页面不存在。点击&nbsp;<a href="/" id="header_home">返回首页</a>&nbsp;或等待&nbsp;<span id="time_limit"><?php echo $time_limit;?></span>&nbsp;秒之后自动跳转...
        </p>
        <?php if(ENV == 1 || ENV == 2):?>
        <p id="tip">
        	<span id="tip_title">提示：</span>
        	<span><?php echo $tip;?></span>
        </p>
        <?php endif;?>
	</div>
	<script type="text/javascript">
	var time_obj = document.getElementById('time_limit');
    var tl = String(time_obj.innerHTML);
	var it = setInterval(function(){
		if(tl > 1)
		{
			time_obj.innerHTML = tl = tl - 1;	
		}
		else
		{
			clearInterval(it);	
			window.location.href = '/';
		}	
	}, 1000);
    </script>
</body>
</html>
